package com.zb.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @Author WEN
 * @Date 2023/8/18 0018
 **/
@Data
@ApiModel("商品图片对象")
public class GoodsImageVo {
    @ApiModelProperty(value = "商品图片ID，新增不必传，修改必传")
    private Long id;

    @Length(max = 300, message = "单个规格图片路径限制 300 个字符以内")
    @ApiModelProperty(value = "商品图片路径")
    private String image;

    public GoodsImageVo() {
    }

    public GoodsImageVo(Long id, String image) {
        this.id = id;
        this.image = image;
    }
}
